<th:block xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:fragment="pageNavigation">
<!-- 菜单开始 -->
<!-- BEGIN SIDEBAR -->
<div class="page-sidebar-wrapper">
    <!-- BEGIN SIDEBAR -->
    <div class="page-sidebar navbar-collapse collapse">
        <!-- BEGIN SIDEBAR MENU -->
        <ul class="page-sidebar-menu  page-header-fixed " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200" style="padding-top: 20px">
            <!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
            <li class="sidebar-toggler-wrapper hide">
                <!-- BEGIN SIDEBAR TOGGLER BUTTON -->
                <div class="sidebar-toggler">
                    <span></span>
                </div>
                <!-- END SIDEBAR TOGGLER BUTTON -->
            </li>
            <th:block th:each="item:${session.menuList}">
            	<li class="nav-item" th:if="${item.url}">
	            	<a href="/" class="nav-link nav-toggle" th:href="${item.url}">
	                    <i class="icon iconfont" th:classappend="${item.icon}?${item.icon}:icon-lock"></i>
	                    <span class="title" th:text="${item.text}"></span>
	                    <span th:if="${#strings.trim(item.icon!=null?item.icon:'') eq 'lbs-zy'}" style="position: relative;">
	                    <img alt="" src="/images/qipao.png" style="vertical-align: text-top;width: 46px;display: inline;position: absolute;top: -20px;" />
	                    <span style="position: absolute;top:-7px;left:12px;z-index: 20;color: white;font-size: 12px;width: 36px;font-family: 宋体;">Home</span>
	                    </span>
	                    <span class="arrow"></span>
	                    <span class="selected"></span>
	                </a>
	            </li>
            	<li class="heading" th:unless="${item.url}">
	            	<h3 class="uppercase">
	            	<div style="position: relative;">
	            		<i class="fa fa-sort-desc" aria-hidden="true" style="position: absolute;top: -3px;left: -5px;"></i>
	            		<span th:text="${item.text}" style="margin-left: 15px;">应用中心</span>
	            		<i class="fa fa-cog" aria-hidden="true" style="position: absolute;top: 0px;right: 0px;"></i>
	            	</div>
	            	</h3>
	            </li>
	            <li th:each="node:${item.items}" class="nav-item">
	                <a href="/" class="nav-link nav-toggle" th:href="${node.url}">
	                    <i class="icon iconfont" th:classappend="${node.icon}?${node.icon}:icon-lock"></i>
	                    <span class="title" th:text="${node.text}"></span>
	                    <span class="selected"></span>
	                </a>
	                <ul class="sub-menu" th:if="${node.items != null}">
                        <li class="nav-item" th:each="childNode:${node.items}">
                            <a href="index.html" class="nav-link"  th:href="${childNode.url}">
                                <i class="icon iconfont" th:classappend="${childNode.icon}?${node.icon}:icon-bar-chart"></i>
                                <span class="title" th:text="${childNode.text}"></span>
                                <span class="selected"></span>
                            </a>
                        </li>
                    </ul>
	            </li>
            </th:block>
        </ul>
        <!-- END SIDEBAR MENU -->
        <!-- END SIDEBAR MENU -->
    </div>
    <!-- END SIDEBAR -->
</div>
<!-- END SIDEBAR -->
<!-- 菜单开结束-->
</th:block>